<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<script type="text/javascript" charset="UTF-8" src="/genJS/yaodian_zipCodCode.js"></script>

	<script type="text/javascript" charset="UTF-8" src="<c-rt:url value="/js/jquery.cascade.ext.js"/>"></script>
	<script type="text/javascript" charset="UTF-8" src="<c-rt:url value="/js/jquery.cascade.js"/>"></script>
	<script type="text/javascript" charset="UTF-8" src="<c-rt:url value="/js/jquery.templating.js"/>"></script>
	


<style>
.tableAlignLeft td{
	text-align:left;
}
</style>
<h1>
退货单
</h1>

	 <c-rt:if test="${true }">

<table class="tb-1 tableAlignLeft">
<thead>
<tr>
	<th>服务单编号</th><th>明细</th><th>退货原因</th><th>退货原因描述</th><th>配件赠品状态</th>
</tr>
</thead>
<tbody>
		<tr>
			<td><a target="_so" href="/ecadmin/serviceOrder/page.do?iamlazy=detail&from=returnAll&serviceId=${so.serviceId }">${so.serviceId }</a></td>
			
			<td>
			<c-rt:forEach items="${serviceOrderProducts}" var="sop">
			<c-rt:forEach items="${sop.serviceOrderDetail }" var="sod">
				
				<c-rt:if test="${sod.detailTp=='0'}">
			
				<span class="type-0">主商品</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='1'}">
				
				<span class="type-1">预购</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='2'}">
				
				<span class="type-2">赠品</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='3'}">
				
				<span class="type-3">加购</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='4'}">
			
				<span class="type-4">活动</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='5'}">
				
				<span class="type-5">满额购</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='6'}">
				
				<span class="type-6">任选</span>
				</c-rt:if>
				<c-rt:if test="${sod.detailTp=='7'}">
				
				<span class="type-7">精品</span>
				</c-rt:if>
				${sod.prodName }[${sod.prodSpecName }]x${sod.qty }<br/>
			</c-rt:forEach>
			</c-rt:forEach>
			</td>
			<td>
			 ${so.reason }
			</td>
			<td>
			${so.description }
			</td>
			<td>
			${so.accessaryDescription }
			</td>
		</tr>
</tbody>
</table>
<table class="tb-1 tableAlignLeft">
	<tr>
		<th>
		姓名
		</th>
		<td>
		${so.receiverName }
		</td>
	</tr>
	<tr>
		<th>联络地址</th>
		<td>
		${so.receiverProvince }
        ${so.receiverCity }
        ${so.receiverArea }
              <br /> 
              邮编：${so.receiverZip}
              街道：${so.receiverAddr } 
		</td>
	</tr>
	<tr>
		<th>手机电话</th>
		<td>${so.receiverMobile }</td>
	</tr>
	<tr>
		<th>固定电话</th>
		<td>
			${so.receiverPhoneArea }-${so.receiverPhone }-分机${so.receiverExt }
		</td>
	</tr>
	
</table>
</c-rt:if>